<?php

class Admin_Model_Option extends Zend_Db_Table_Abstract
{
    protected $_name = 'option';
    public function addData($userId, $name){
        $data = array('userId'=>$userId, 'name'=>$name);
        $this->insert($data);
    }
    public function deleteUserId ($userId)
    {
        $this->delete('userId =' . (int) $userId);  
    }
}

























